# -*- coding: utf-8 -*-
# @Time    : 2021/4/22 19:53
# @Author  : pengjiayu
# @Email   : 2217197620@qq.com
# @File    : 列表去重并从小到大排序.py
# @Software: PyCharm


#######列表去重降序排列########
# num = [1,2,3,4,3,2,1,4,4,5,5,6,7,3]
# n = list(set(num))
# n.sort(reverse=True)
# print(n)

########生成随机整数0-10  随机小数0-10  0-1之间的随机小数#######
# import random
# print(random.randint(1,10))
# print(random.uniform(0,10))
# print(random.random())

##############统计字符串中每个单词出现的次数###########
# List = ["hello world hello jy"]
# dict={}
# for list in List:
#     keys = list.split(" ")
#     for key in keys:
#         if key in dict.keys():
#             dict[key]=dict[key]
#         else:
#             dict[key]=1
# print(dict)

############给定一个字符串，找到字符串中第一个重复的字符######


##########使用python实现冒泡排序############


###########使用python实现快速排序############


############输出九九乘法表###################
# for i in range(1, 10):
#     for j in range(1, i+1):
#         print('{}x{}={}\t'.format(j, i, i*j), end='')
#     print()
